import request from '@/utils/request'


//查询全部
export const tagsApi = () => {
    return request({
        url: '/tag/list',
        method: 'get',
    })
}
//修改或新增
export const updateAndAddTagApi = (data) => {
    return request({
        url: '/tag/post',
        data: data,
        method: 'post',
    })
}


export const tagPageApi = (params) => {
    return request({
        url: '/tag/page',
        params: params,
        method: 'get',
    })
}

export const deleteTagApi = (id) => {
    return request({
        url: '/tag/delete',
        method: 'delete',
        data: {id}
    })
}